﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QueryData;

public class 引用影子属性
{
    void MyMethod()
    {
        using (var db = new BasicDbContext())
        {
            db.BasicEntities.Where(x => EF.Property<int>(x, "MyProperty") == 5).ToList();
        }
    }

}
